{include app:admin.inc.header}
<!--tmpl-resource-->
{include app:admin.inc.top}


<div class="container-fluid content-body">
    <div class="main">
        <!-- left side start-->

        <section class="left-section">
            <dl id="leftNav" data-type="setting">
                <dt><i class="glyphicon glyphicon-wrench"></i> 网站设置</dt>
                {if in_case_array('admin/setting',$priv) || empty($priv)}
                <dd><a class="mbh" href="{url /admin/setting/index}">站点设置</a></dd>
                {/if}
                {if in_case_array('admin/nav',$priv) || empty($priv)}
                <dd><a class="mbh" href="{url /admin/nav/index}">导航设置</a></dd>
                {/if}
                {if in_case_array('admin/friendLink',$priv) || empty($priv)}
                <dd><a class="mbh" href="{url /admin/friendLink/index}">友情链接</a></dd>
                {/if}
                {if in_case_array('admin/remind',$priv) || empty($priv)}
                <dd><a class="mb active" href="{url /admin/remind/index}">站内提醒</a></dd>
                {/if}
                {if in_case_array('admin/remindSms',$priv) || empty($priv)}
                <dd><a class="mbh" href="{url /admin/remindSms/index}">短信提醒</a></dd>
                {/if}
                {if in_case_array('admin/security',$priv) || empty($priv)}
                <dd><a class="mbh" href="{url /admin/security/index}">安全中心</a></dd>
                {/if}
                {if in_case_array('admin/remind',$priv) || empty($priv)}
                <dd><a class="mbh" href="{url /admin/message/index}">消息中心</a></dd>
                {/if}
                {if in_case_array('admin/loginlog',$priv) || empty($priv)}
                <dd><a class="mbh" href="{url /admin/LoginLog/index}">登录日志</a></dd>
                {/if}
                {if in_case_array('admin/operationlog',$priv) || empty($priv)}
                <dd><a class="mbh" href="{url /admin/operationLog/index}">操作日志</a></dd>
                {/if}
            </dl>
        </section>

        <!-- left side end-->


        <!-- main content start-->
        <section class="right-section" id="right-section">
            {include admin.inc.bread}
            <h2 class="header">{$title}</h2>
            <!-- start of inner-frame -->
            <div class="inner-iframe">

                <div class="inner-container">
                    <form role="form" class="form-horizontal basicForm content-add-form" id="content-add-form"
                          autocomplete="off">
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="asterisk">*</span>接收用户</label>
                            <div class="col-sm-4">

                                <select class="form-control  " id="inputto_member_id"
                                        name="data[to_member_id]" required cname="接收用户">
                                    <option value="">请选择接收用户</option>

                                    {loop $to_member_idoptions $v}
                                    <option {if $item[to_member_id]== $v[id]}selected{/if} value="{$v[id]}">{$v[username]}({$v[nickname]})</option>
                                    {/loop}
                                </select>
                            </div>
                            <p class="help-block"></p>

                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="asterisk">*</span>模板</label>
                            <div class="col-sm-4">

                                {setSelectOptions $option_arr data[tmpl_id] '' '请选择模板' 'required cname="模板"'}
                            </div>
                            <p class="help-block"></p>

                        </div>


                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="asterisk">*</span>信息内容 </label>
                            <div class="col-sm-4">

                                <textarea dtype="" class="form-control" maxlength="255" name="data[to_content]"
                                          placeholder="信息内容" required cname="信息内容"
                                          value="">{$item[message_content]}</textarea>
                            </div>
                            <p class="help-block"></p>

                        </div>



                        <!--tmpl-assocfields-->
                        <div class="btn-group btn-group-or">
                            <a href="{if $id==''}{$do_add_url}{else}{$do_edit_url}?id={$id}{/if}"
                               class="btnlg mb ajaxproxy"
                               proxy='{"method":"post", "location":"{$index_url}"}'>提交保存</a>

                        </div>
                    </form><!-- content add form -->
                </div>
            </div><!-- end of inner -->
        </section>
    </div>
</div>
{include admin.inc.footer}

<!--tmpl-script-->

<!-- pagescript -->
<script type="text/javascript">
    seajs.use("admin/message_remindadd", function (parameter) {

        /**--tmpl-templatejavascript--**/

        <!--tmpl-templatejavascript-->
        parameter.upload_url = "{$upload_url}";
        parameter.image_search_url = "{$image_search_url}";
        parameter.image_list_url = "{$image_list_url}";

        parameter.init();
    });
</script>


</body>
</html>
